package me.huanmeng.heater.listener;

import me.huanmeng.heater.Heater;
import me.huanmeng.heater.api.event.SignallingEvent;
import me.huanmeng.heater.event.EventHandler;
import me.huanmeng.heater.event.Tip;
import me.huanmeng.heater.signalling.extra.SignallingExtraData;

/**
 * 2021/10/3<br>
 * Heater<br>
 *
 * @author huanmeng_qwq
 */
@EventHandler
@Tip("System")
public class SignallingListener {
    public SignallingListener() {
        Heater.registerEvents(null, this);
    }

    public void onSign(SignallingEvent e) {
        final SignallingExtraData<?> extra = e.getSignalling().getData().getExtra();
        if(extra==null){
            return;
        }
        System.out.println("coming a sign type: " + extra.getExtraType());
    }
}
